﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using Code.Models;

namespace RuiJing.Web.Areas.Manage.Models.LoginModels
{
    public class IndexModel
    {
        [Required(ErrorMessage="*")]
        [RegularExpression(".{4,20}",ErrorMessage="格式不正确")]
        public string LoginName { get; set; }
        [Required(ErrorMessage="*")]
        [RegularExpression(".{6,12}",ErrorMessage="格式不正确")]
        public string Password { get; set; }
        [Required(ErrorMessage="*")]
        public string CheckCode { get; set; }
    }
}